<?php
class sfPHPWord extends PHPWord
{
	/**
     * Load a Template File
     * 
     * @param string $strFilename
     * @return sfPHPWord_Template
     */
    public function loadTemplate($strFilename) {
        if(file_exists($strFilename)) {
            $template = new sfPHPWord_Template($strFilename);
            return $template;
        } else {
            trigger_error('Template file '.$strFilename.' not found.', E_ERROR);
        }
    }	
}